<style>
    .ly-empty {
        display: flex;flex-flow: column;align-items:center;  padding: 10px 0;
    }
    .ly-empty img{
        width: 120px;
    }
    .ly-empty span{
        line-height: 28px;font-size: 14px;color: #111;
    }
</style>
<template>
    <div class="ly-empty">
        <img  :src="img">
        <span >{{text}}</span>
    </div>
</template>
<script>
    Rap.define('', '', function () {
        return {
            name: 'ly-empty',
            props: {
                text: {
                    'default': '暂无数据'
                },
                img:{
                    type:String,
                    'default':'https://user-images.githubusercontent.com/507615/54591670-ac0a0180-4a65-11e9-846c-e55ffce0fe7b.png'
                }
            }, created: function () {
            }, methods: {}
        }
    });
</script>
